import { defineConfig } from "drizzle-kit";

export default defineConfig({
  // TODO: load schema from package
  schema: "../../packages/db/schema.ts",
  out: "./drizzle",
  dialect: "postgresql",
  dbCredentials: {
    host: process.env.DB_HOST || "localhost",
    port: parseInt(process.env.DB_PORT || "6543"),
    user: process.env.DB_USER || "postgres",
    password: process.env.DB_PASSWORD || "postgres",
    database: process.env.DB_NAME || "postgres",
  },
  // dbCredentials: {
  //   host: "aws-0-ap-southeast-2.pooler.supabase.com",
  //   port: 6543,
  //   user: "postgres.kulxkuuepvdevxleqqsx",
  //   password: "AJN8EvP8jEFVFL33",
  //   database: "postgres",
  // },
});
